exports.main = async (context) => {
    const queryData = context.data
    try{
        const result = await context.cloud.topApi.invoke({
            api: 'taobao.opentrade.special.users.mark',
            data: {
                'hit': queryData.hit,
                'open_user_ids': [context.openId],
                'item_id': queryData.item_id,
                'sku_id': queryData.sku_id,
                'status': queryData.status
            },
            autoSession: true
        });
        return {success:true, data: result};
    }catch(e){
        return {success: false, data:e};
    }
};

